disaccustom (oneself) from (something)

Translations
отвыкать от (чего-либо)
After years of smoking, he managed to disaccustom himself from cigarettes.
После многих лет курения он смог отвыкнуть от сигарет.